<template>
  <div class="container">
    <a-button type="primary" @click="toLigin">登录</a-button>
  </div>
</template>
<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()
const toLigin = () => {
  router.push({ name: 'home', query: { a: 1 } })
}
</script>
<style scoped>
.container {
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
